import "element-ui/lib/theme-chalk/index.css";
import ElementUI from "element-ui";
import UmyUi from "umy-ui";
import "umy-ui/lib/theme-chalk/index.css"; // 引入样式
import Vue from "vue";

// 给全局表格设置 showOverflowTooltip
ElementUI.TableColumn.props.showOverflowTooltip = { type: Boolean, default: true };
// 表格数据处理
ElementUI.TableColumn.props.formatter = {
  type: Function,
  default: (row, column, cellValue) => {
    if (cellValue === "") return "--";
    return cellValue ?? "--";
  }
};

Vue.use(ElementUI, { size: "small" });
Vue.use(UmyUi);
